﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Rnwood.SmtpServer;
using Rnwood.Smtp4dev;
using System.Threading;

namespace CMS.SmtpServerTest
{
    class Program
    {
        private static Server _server;

        private static void ServerWork()
        {
            ServerBehaviour b = new ServerBehaviour();
            b.MessageReceived += MessageReceived;
            _server = new Server(b);
            _server.Run();
        }

        private void MessageReceived(object sender, MessageReceivedEventArgs e)
        {

        }

        static void Main(string[] args)
        {
            LaunchInfo launchInfo = new LaunchInfo(Environment.CurrentDirectory, args);
            ServerWork();
        }
    }
}
